package systemRouter

import (
	"wisdomCoach/controller/systemController"

	"github.com/gin-gonic/gin"
)

type UserRouter struct{}

func (UserRouter) InitUserRouter(router *gin.RouterGroup) {
	router.GET("user/deptTree", systemController.DeptTree)
	router.GET("user/list", systemController.GetUserList)
	router.GET("user/", systemController.GetPostsAndRoles)

	router.GET("user/:id", systemController.GetUser)

	router.POST("user", systemController.AddUser)
	router.PUT("user", systemController.EditUser)
}
